package com.bjfu.college.pojo;

/**
 * Copyright@:
 *
 * @Author: Pan Zifeng
 * @Date: 2023/07/16/22:10
 * @Description:
 */

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * @desc:数据导出，生成excel文件时的列名称集合
 * @author: Pzf
 * @time: 2023.7.16
 */
public class ColumnTitleMap {
    private Map<String, String> columnTitleMap = new HashMap<String, String>();
    private ArrayList<String> titleKeyList = new ArrayList<String> ();

    public ColumnTitleMap(String datatype) {
        switch (datatype) {
            case "recordsInfo":
                initRecordsInfoColumn();
                initRecordsTitleKeyList();
                break;
            default:
                break;
        }

    }
    /**
     * mysql志愿记录表需要导出字段--显示名称对应集合
     */
    private void initRecordsInfoColumn() {
        columnTitleMap.put("enrollment_category","招生类别");
        columnTitleMap.put("institution_code","院校代码");
        columnTitleMap.put("institution_name","院校名称");
        columnTitleMap.put("province","省份");
        columnTitleMap.put("city","城市");
        columnTitleMap.put("school_property","办学性质");
        columnTitleMap.put("institutional_level","院校层次");
        columnTitleMap.put("major_code","专业代码");
        columnTitleMap.put("major_name","专业名称");
        columnTitleMap.put("special_requirements","特殊要求");
        columnTitleMap.put("subject_selection_requirements","选科要求");
        columnTitleMap.put("new_major","新增专业");
        columnTitleMap.put("schooling_length","学制");
        columnTitleMap.put("enrollment_plan","招生计划");
        columnTitleMap.put("tuition_fee","学费");
        columnTitleMap.put("major_class","专业类");
        columnTitleMap.put("major_category","专业门类");
        columnTitleMap.put("subject_evaluation","学科评级");
        columnTitleMap.put("past_first_enrollment_plan","1年前招生计划");
        columnTitleMap.put("past_first_casting_archives_plan","1年前投档计划");
        columnTitleMap.put("this_year_reference_score","今年参照分");
        columnTitleMap.put("past_first_lowest_score","1年前最低分");
        columnTitleMap.put("past_first_lowest_rank","1年前最低分位次");
        columnTitleMap.put("past_second_lowest_score","2年前最低分");
        columnTitleMap.put("past_second_lowest_rank","2年前最低分位次");
        columnTitleMap.put("past_third_lowest_score","3年前最低分");
        columnTitleMap.put("past_third_lowest_rank","3年前最低分位次");
        columnTitleMap.put("risk","风险程度");
    }

    /**
     * mysql志愿记录表需要导出字段集
     */
    private void initRecordsTitleKeyList() {
        titleKeyList.add("enrollment_category");
        titleKeyList.add("institution_code");
        titleKeyList.add("institution_name");
        titleKeyList.add("province");
        titleKeyList.add("city");
        titleKeyList.add("school_property");
        titleKeyList.add("institutional_level");
        titleKeyList.add("major_code");
        titleKeyList.add("major_name");
        titleKeyList.add("special_requirements");
        titleKeyList.add("subject_selection_requirements");
        titleKeyList.add("new_major");
        titleKeyList.add("schooling_length");
        titleKeyList.add("enrollment_plan");
        titleKeyList.add("tuition_fee");
        titleKeyList.add("major_class");
        titleKeyList.add("major_category");
        titleKeyList.add("subject_evaluation");
        titleKeyList.add("past_first_enrollment_plan");
        titleKeyList.add("past_first_casting_archives_plan");
        titleKeyList.add("this_year_reference_score");
        titleKeyList.add("past_first_lowest_score");
        titleKeyList.add("past_first_lowest_rank");
        titleKeyList.add("past_second_lowest_score");
        titleKeyList.add("past_second_lowest_rank");
        titleKeyList.add("past_third_lowest_score");
        titleKeyList.add("past_third_lowest_rank");
        titleKeyList.add("risk");
    }

    public Map<String, String> getColumnTitleMap() {
        return columnTitleMap;
    }

    public ArrayList<String> getTitleKeyList() {
        return titleKeyList;
    }
}

